package org.zp.service;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import org.zp.mapper.ExpressInfoMapper;
import org.zp.pojo.ExpressInfo;
import org.zp.vo.ExperssVo;

import com.github.pagehelper.PageHelper;

@Service
@Transactional(rollbackFor = Exception.class)//出现异常就回滚事务
public class ExpressInfoServiceimpl implements ExpressInfoService{
	@Resource
	private ExpressInfoMapper e;

	

	@Override
	public ExpressInfo getExpressInfo(Integer uid) {
		// TODO Auto-generated method stub
		return e.getExpressInfo(uid);
	}



	@Override
	public Integer insertExpress(ExpressInfo einfo) {
		// TODO Auto-generated method stub
		return e.insertExpress(einfo);
	}



	



	@Override
	public List<ExperssVo> getMyLogistics(Long check, String start, String end, Integer uid, Integer startpage, Integer limitpage) {
		// TODO Auto-generated method stub

		PageHelper.startPage(startpage, limitpage);
//		List<ExpressInfo> css=e.getMyLogistics(check, start, end, uid);
		List<ExperssVo> css=e.selectLogistics(check, start, end, uid);
		System.out.println("返回list"+css);
		return css;
	}






	@Override
	public List<ExpressInfo> selectlog() {
		// TODO Auto-generated method stub
		return e.selectlog();
	}



	@Override
	public Integer tuidan(Integer eidd) {
		// TODO Auto-generated method stub
		return e.tuidan(eidd);
	}



	@Override
	public Integer selecyEid(ExpressInfo einfo) {
		// TODO Auto-generated method stub
		return e.selectEid(einfo);
	}
}
